package com.hyperfix.models.washer.pojos;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.websocket.Session;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author JiangChunYu
 * 2024/4/11
 */
@Data
@TableName("monitor")
public class Monitor implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 用户监测管线对应关系id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户编号
     */
    private Integer userId;
    /**
     * 管线编号
     */
    private Integer pipelineId;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private Session session;
}
